ADD_LIBRARY(
        EyerWASMCommon STATIC

        EyerWASMEvent.hpp
        EyerWASMEvent.cpp

        EyerWASMEventLoop.hpp
        EyerWASMEventLoop.cpp

        EyerWASMBuffer.cpp
        EyerWASMBuffer.hpp
)

SET(head_files
        EyerWASMEvent.hpp
        EyerWASMEventLoop.hpp
        EyerWASMBuffer.hpp
)

INSTALL(FILES ${head_files} DESTINATION include/EyerWASMCommon)
INSTALL(
        TARGETS EyerWASMCommon
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
)
